extends VBoxContainer


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#	pass
func on_show(type):
#	print_debug(Global.current_edit_week)
	for btn in get_child(Global.current_edit_week).get_node("HBoxContainer").get_children():
		if type == "gedou":
			btn.texture = Global.gedou_icon
		elif type == "magic":
			btn.texture = Global.magic_icon
		elif type == "wenxue":
			btn.texture = Global.wenxue_icon
		elif type == "music":
			btn.texture = Global.music_icon
		elif type == "reset":
			btn.texture = Global.reset_icon
		elif type == "work":
			btn.texture = Global.work_icon
